//
//  LightingControl.h
//  iPhoneControlApplication
//
//  Created by Elliot Chapple on 11/04/2009.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
//Add a segmented control for the Master Switch
#define kShowMasterControls 0

@interface LightingControl : UIViewController {
//Create a number of IBOutlets for the interface
	IBOutlet	UISwitch	*dhallLight;
	IBOutlet	UISwitch	*dlivingRoomLight;
	IBOutlet	UISwitch	*dkitchenLight;
	IBOutlet	UISwitch	*dbathroomOneLight;
	IBOutlet	UISwitch	*ubathroomTwoLight;
	IBOutlet	UISwitch	*ubedroomOneLight;
	IBOutlet	UISwitch	*ubedroomTwoLight;
//	IBOutlet	UISwitch	*ustudyLight;
//For the master switch
	IBOutlet	UISwitch	*masterControlSwitch;
	IBOutlet	UIView		*switchToMasterControls;
}

//create the properties for each interface outlet
@property (nonatomic, retain) UISwitch	*dhallLight;
@property (nonatomic, retain) UISwitch	*dlivingRoomLight;
@property (nonatomic, retain) UISwitch	*dkitchenLight;
@property (nonatomic, retain) UISwitch	*dbathroomOneLight;
@property (nonatomic, retain) UISwitch	*ubathroomTwoLight;
@property (nonatomic, retain) UISwitch	*ubedroomOneLight;
@property (nonatomic, retain) UISwitch	*ubedroomTwoLight;
//@property (nonatomic, retain) UISwitch	*ustudyLight;
//For the Master
@property (nonatomic, retain) UISwitch	*masterControlSwitch;
@property (nonatomic, retain) UIView	*switchToMasterControls;


//Create a series of actions that the master will control

//Method allocation for master switch view being activated
-(IBAction)masterSwitchChanged:(id)sender;
//Toggle show/hide for the master control set
-(IBAction)toggleMasterControlSet:(id)sender;



@end
